<div class="container">
<form method="POST" action="{:U('Account/login')}">
    <fieldset class="bottom-line">
        <legend>{$Think.lang.user_auth_providers}</legend>
        <notempty name="providers">
        <ul class="providers">
            <volist name="providers" id="vo">
            <li><span>{$vo.provider}:</span><span>{$vo.identifier}</span><if condition="count($providers) OR !empty($user['password'])"><span><a href="{:U('Account/delProvider',array('hash'=>$vo['hash']))}">{$Think.lang.user_remove_provider}</a></span></if></li>
            </volist>
        </ul>
        </notempty>
        <p>
        	<input class="btn" type="submit" value="{$Think.lang.user_auth_add_provider}" />
			<input type="hidden" name="add_provider" value="1" />	
        </p>
	</fieldset>
</form>
<form method="POST" action="{:U('Account/editEmail')}">
    <fieldset class="bottom-line">
    	<legend>{$Think.lang.user_edit_email}</legend>
        <table class="tb" width="100%">
            <tr>
                <td align="right" width="15%">{$Think.lang.user_current_email}:</td>
                <td>{$user.email}</td>
            </tr>
        	<tr>
                <td align="right"><label for="email">{$Think.lang.user_new_email}:</label></td>
                <td><input id="email" class="input" type="text" name="email" size="40" /></td>
            </tr>
            <tr>
                <td align="right"></td>
                <td>
                	<input class="button" type="submit" value="{$Think.lang.submit}" />
                	<input class="alt-button" type="reset" value="{$Think.lang.reset}" />
    				<input type="hidden" name="uid" value="{$user.user_id}" />
                </td>
            </tr>
        </table>
    </fieldset>
</form>
<form method="POST" action="{:U('Account/editPassword')}">
    <fieldset>
        <legend><notempty name="user.password">{$Think.lang.user_auth_edit_pwd}<else/>{$Think.lang.user_auth_setup_pwd}</notempty></legend>
        <table class="tb" width="100%">
            <tr>
                <td align="right" width="15%"><label for="password">{$Think.lang.password}:</label></td>
                <td><input id="password" class="input" type="password" name="password" size="40" />&nbsp;&nbsp;{$Think.lang.password_explain}</td>
            </tr>
            <tr>
                <td align="right"><label for="repassword">{$Think.lang.repassword}:</label></td>
                <td><input id="repassword" class="input" type="password" name="repassword" size="40" /></td>
            </tr>
            <notempty name="user.password">
            <tr>
                <td align="right"><label for="current-password">{$Think.lang.user_auth_current_pwd}:</label></td>
                <td><input id="current-password" class="input" type="password" name="current_password" size="40" /></td>
            </tr>
            </notempty>
            <tr>
                <td align="right"></td>
                <td>
                	<input class="button" type="submit" value="{$Think.lang.submit}" />
                	<input class="alt-button" type="reset" value="{$Think.lang.reset}" />
    				<input type="hidden" name="uid" value="{$user.user_id}" />
    			</td>
            </tr>
        </table>
    </fieldset>
</form>
</div>